package com.itheima.stock.pojo.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 角色表
 * @TableName sys_role
 */
@ApiModel(description = "角色表")
@Data
public class SysRole {
    /**
     * 主键
     */
    //避免id精度丢失
    @ApiModelProperty(value = "主键", position = 1)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称", position = 2)
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", position = 3)
    private String description;

    /**
     * 状态(1:正常0:弃用)
     */
    @ApiModelProperty(value = "状态(1:正常0:弃用)", position = 4)
    private Integer status;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", position = 5)
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", position = 6)
    private Date updateTime;

    /**
     * 是否删除(1未删除；0已删除)
     */
    @ApiModelProperty(value = "是否删除(1未删除；0已删除)", position = 7)
    private Integer deleted;

    private static final long serialVersionUID = 1L;
}